document.myReady = function(callBack){
    if(document.addEventListener){
        document.addEventListener('DOMContentLoaded',callBack,false);
    }else{
        window.onload = callBack;
    }
}